import urllib2

def HttpChannel(object):
  def __init__(self, url):
    self.url = url

  def send(self, req_proto):
    res_proto = RequestProto()
    try:
      http_req = urllib2.urlopen(self.url, req_proto.SerializeToString())
      res_proto.MergeFromString(http_req)
    except error:
      res_proto.status = 
    return res_proto

def TcpChannel(object):
  def __init__(self, url):
    pass

